Re: [NTG-context] How to make something appear to the right of every paragraph?

2022-10-13 Thread Max Chernoff via ntg-context
Hi Joel, > When I use the code given, it compiles and displays fine. But when I > try replacing \everypar with \EveryPar, it halts during compiling It looks like \EveryPar is a macro and not a token list. > These both work great, but do that for the whole document? Is there a > way

Re: [NTG-context] How to make something appear to the right of every paragraph?

2022-10-13 Thread Joel via ntg-context
ree line paragraph         Four line paragraph \\       Four line paragraph \\       Four line paragraph \\       Four line paragraph         \samplefile{bryson}         \samplefile{knuth}   \stoptext An \everypar solution:   \appendtoks%       \vbox to 0pt{%           \dorecurse{3}{%        

Re: [NTG-context] How to make something appear to the right of every paragraph?

2022-10-13 Thread Joel via ntg-context
When I use the code given, it compiles and displays fine. But when I try replacing \everypar with \EveryPar, it halts during compiling with this complaint: "A number should have been here; I inserted '0'. (If you can't figure out why I needed to see a number, look up 'weird error' in the

Re: [NTG-context] How to make something appear to the right of every paragraph?

2022-10-10 Thread Wolfgang Schuster via ntg-context
Max Chernoff via ntg-context schrieb am 11.10.2022 um 00:57: Hi Joel, On Mon, 2022-10-10 at 12:46 +, Joel wrote: Hello Max, It is preferred if the solution is just three lines per paragraph, rather than some content parallel to the text A Lua callback solution: [...] An \everypar

Re: [NTG-context] How to make something appear to the right of every paragraph?

2022-10-10 Thread Max Chernoff via ntg-context
e paragraph Three line paragraph \\ Three line paragraph \\ Three line paragraph Four line paragraph \\ Four line paragraph \\ Four line paragraph \\ Four line paragraph \samplefile{bryson} \samplefile{knuth} \stoptext An \

Re: [NTG-context] How to make something appear to the right of every paragraph?

2022-10-10 Thread Joel via ntg-context
ple to do with layers/backgrounds + MetaFun. If you want for there to be exactly three rules per paragraph, then that is more complicated. I can think of some bad solutions (\everypar, Lua callbacks), but I'll leave it to someone else to think of a good solution. Thank

Re: [NTG-context] How to make something appear to the right of every paragraph?

2022-10-10 Thread Max Chernoff via ntg-context
+ MetaFun. If you want for there to be exactly three rules per paragraph, then that is more complicated. I can think of some bad solutions (\everypar, Lua callbacks), but I'll leave it to someone else to think of a good solution. Thank

[NTG-context] [#1] CJK regression? | lmtx-20210613 .

2021-06-13 Thread Richard Mahoney
}}} And this is the code behind the screenshots: {\tfx \everypar{\hangafter=1\hangindent=3em\relax} Karashima, N.~(1977) {\it Indo nyūmon} = \JA{\tfx インド入門} = {\it Introducing India}. Tōkyō: Tōkyō Daigaku Shuppankai. \useURL[url1][https://ci.nii.ac.jp/ncid/BN00345890][][\hyphenatedurl{https

[NTG-context] RE : \noindentation not working

2020-11-20 Thread Joseph
nting[yes, always, big]>>    \starttext>>    \noindentation>>    a>> >>    a>>    \stoptext>> >> Using LMTX (2020.11.19 11:28), I get indentation with \noindentation.>> >> Could anyone confirm this?> > Yes, something is wrong.> >

Re: [NTG-context] \noindentation not working

2020-11-20 Thread Hans Hagen
indentation with \noindentation. Could anyone confirm this? Yes, something is wrong. begin example \showgrid \starttext \parindent\emwidth a \everypar{\setbox\scratchbox\lastbox} a \stoptext end example Ah, okay. We have normalization enabled now. That means two things: - instead

Re: [NTG-context] \noindentation not working

2020-11-20 Thread Wolfgang Schuster
this? Yes, something is wrong. begin example \showgrid \starttext \parindent\emwidth a \everypar{\setbox\scratchbox\lastbox} a \stoptext end example Wolfgang ___ If your question is of interest

Re: [NTG-context] Side figure bug in mkiv?

2019-07-19 Thread Wolfgang Schuster
neither of the two start a new paragraph before the first letter and therefore \the\everypar is still inside a group. The normal switch to use bold style is \bf and \bold{...} (or {\bold ...}) is only  a alternative switch which uses \bf to change the font. The same applies to \italic{...}, \mono

Re: [NTG-context] Side figure bug in mkiv?

2019-07-19 Thread Alan Braslau
f the two start a new paragraph before the > > first letter and therefore \the\everypar is still inside a group. > The normal switch to use bold style is \bf and \bold{...} (or {\bold > ...}) is only  a alternative > switch which uses \bf to change the font. The same applies to > \i

Re: [NTG-context] Side figure bug in mkiv?

2019-07-19 Thread Wolfgang Schuster
Henri Menke schrieb am 18.07.2019 um 23:29: For what it's worth, the MKIV way to switch to bold face is \bold{text} instead of {\bf text} but it also doesn't fix your problem because neither of the two start a new paragraph before the first letter and therefore \the\everypar is still inside

Re: [NTG-context] Side figure bug in mkiv?

2019-07-18 Thread Henri Menke
raph, so ConTeXt communicates the current \parshape settings to the next paragraph using \everypar. However, when a new paragraph starts in a group, i.e. blah blah blah ... {\bf Blah blah} blah ... TeX inserts the \everypar tokens inside that group because only the first letter sta

[NTG-context] fontloader error in latex: attempt to call upvalue 'getdirection' (a nil value)

2019-01-06 Thread Ulrike Fischer
I just tried to import the fontloader from 2019-01-03 into latex, and get on a simple document the error (./test-utf8.aux)error: ...ad/texmf/tex/luatex/luaotfload/fontloader-2019-01-03.lua:23868: attempt to call upvalue 'getdirection' (a nil value) . \newpage ...k \@nobreakfalse \everypar {}\fi

Re: [NTG-context] ending every paragraph

2015-08-02 Thread Alan BRASLAU
On Sat, 1 Aug 2015 17:35:38 -0600 Idris Samawi Hamid ادريس سماوي حامد idris.ha...@colostate.edu wrote: Suppose I want to end the last line of every paragraph with a command, say, \thinrule, or a string of dots. Is there a straightforward way to do that? TeX has \everypar but I'm not aware

Re: [NTG-context] ending every paragraph

2015-08-02 Thread Idris Samawi Hamid ادريس سماوي حامد
of dots. Is there a straightforward way to do that? TeX has \everypar but I'm not aware of any, say, \endeverypar command. Hello Idris, I would think that your only hope in this case would be through the use of \startparagraph \stopparagraph, for otherwise TeX does not know where a paragraph

[NTG-context] ending every paragraph

2015-08-01 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Suppose I want to end the last line of every paragraph with a command, say, \thinrule, or a string of dots. Is there a straightforward way to do that? TeX has \everypar but I'm not aware of any, say, \endeverypar command. Best wishes Idris -- Idris Samawi Hamid Professor

Re: [NTG-context] Hanging indent

2015-03-11 Thread Wolfgang Schuster
: \define\startHangPar {\begingroup\EveryPar{\hangafter\plusone\hangindent\emwidth\relax}} \define\stopHangPar {\par\endgroup\blank[Afterhangingparagraph]} Wolfgang ___ If your question is of interest to others as well

Re: [NTG-context] Hanging indent

2015-03-11 Thread Willi Egger
\EveryPar{\hangafter\plusone\hangindent\emwidth\relax}} \define\stopHangPar {\par\endgroup\blank[Afterhangingparagraph]} \starttext \startHangPar \input knuth \stopHangPar \startHangPar Aanslaan, aanspreken. Een poging in 't werk stellen. Ik zal dat heertje reis aanslaan. Sla dien broger

[NTG-context] Hanging indent

2015-03-10 Thread Willi Egger
} \definestartstop[HangPar] [before={\bgroup\appendtoks\Hangindent\to\everypar}, after={\egroup\blank[Afterhangingparagraph]}] \starttext \startHangPar \input knuth \stopHangPar \startHangPar {\bf Aanslaan,} aanspreken. Een poging in 't werk stellen. Ik zal dat heertje reis

Re: [NTG-context] Hanging indent

2015-03-10 Thread Wolfgang Schuster
[Afterhangingparagraph][1pc] \starttext \def\Hangindent{\hangafter=1\hangindent=1em} \definestartstop[HangPar] [before={\bgroup\appendtoks\Hangindent\to\everypar}, after={\egroup\blank[Afterhangingparagraph]}] \starttext \startHangPar \input knuth \stopHangPar \startHangPar

[NTG-context] Insert text at end of every paragraph

2014-04-15 Thread Joshua Krämer
Endstring should appear on paragraph ends only (it's acceptable to appear after headings, too). How can I achieve the desired result? Is there maybe something like \EveryPar for the end of paragraphs? Thanks and kind regards, Joshua Krämer

Re: [NTG-context] conditional format of headings

2012-06-08 Thread Jan Pohanka
}% \setvalue{#1:#2:\ifthirdargument\the\dimexpr#3\relax\fi}{#4}} \def\SectionBlank#1#2% {\edef\CurrentSection{#1}% \executeifdefined{#1:#2:\LastSectionBlankSignal}{\executeifdefined{#1:#2:\the\dimexpr\zeropoint\relax}{\getvalue{#1:#2: \let\LastSectionBlankSignal\zeropoint \EveryPar{\let

Re: [NTG-context] conditional format of headings

2012-06-06 Thread Wolfgang Schuster
}{\executeifdefined{#1:#2:\the\dimexpr\zeropoint\relax}{\getvalue{#1:#2: \let\LastSectionBlankSignal\zeropoint \EveryPar{\let\LastSectionBlankSignal\zeropoint} \def\SectionBlankSignal {\setevalue{LastSectionBlankSignal}{\the\dimexpr\csname\CurrentSection Signal\endcsname\relax}} % Heading

Re: [NTG-context] Including command output

2012-03-05 Thread Kip Warner
{the character 1} \everypar-\page_otr_command_synchronize_side_floats \checkindentation \showparagraphnumber \restoreinterlinepenalty \flushnotes \synchronizenotes \OTRSETshowstatus \flushpostponedbookmark \registerparoptions \flushpostponednodedata \typo_delimited_repeat \insertparagraphintro

Re: [NTG-context] redefining paragraph breaks

2012-01-06 Thread Michael Talbot-Wilson
by a paragraph symbol, e.g.: This is paragraph 1. This is paragraph 2. Becomes in the typeset document: This is paragraph 1. ¶ This is paragraph 2. Can't you use plain's \everypar? Not plain, built-in, but it's not the thing. The thing's \let. \starttext \let\oldp=\par \def\par{\P} In case you

Re: [NTG-context] redefining paragraph breaks

2012-01-05 Thread Michael Talbot-Wilson
. This is paragraph 2. Becomes in the typeset document: This is paragraph 1. ¶ This is paragraph 2. ? c Can't you use plain's \everypar? ___ If your question is of interest to others as well, please add an entry to the Wiki

[NTG-context] paragraph numbering

2011-12-29 Thread Herbert Voss
...a [#1]\fi \doifelsenothing {#3} \donefalse \donetrue \ifdo... everypar ...eckindentation \showparagraphnumber \restoreinterlinepenalty \... to be read again f l.5 f irst numbered paragraph

[NTG-context] MLA Workscited example no longer works

2011-03-24 Thread John Haltiwanger
? % ~ Patrick Gundlach \def\hangover{\hangafter=1\hangindent=0.5in} \definestartstop[workscited][ before={ \page[no] \indenting[never] \startalignment[left] \bibliography{Recommended Reading} \stopalignment \setupwhitespace[medium] \bgroup\appendtoks\hangover\to\everypar

Re: [NTG-context] \registerparoptions ! Extra \else

2010-12-01 Thread Hans Hagen
. \registerparoptions ...gisterparoptions \fi \else \dodoregisterparoptions \f... everypar ...stponedbookmark \registerparoptions \flushsyncpositions \flush... to be read again

[NTG-context] \registerparoptions ! Extra \else

2010-11-30 Thread Alan BRASLAU
\fi \else \dodoregisterparoptions \f... everypar ...stponedbookmark \registerparoptions \flushsyncpositions \flush... to be read again \hskip \fixedspace ...malhbox

Re: [NTG-context] Is it possible to pass unmarked paragraphs into Lua for processing

2010-10-15 Thread Kevin D. Robbins
I confess, I hadn't considered anything quite so bold as reading the whole of the text into Lua and then processing it back out. I suppose I was expecting one of the true TeXperts to offer suggestions involving \appendtoks ... \to \everypar. I also realized that I forgot to mention that I want

Re: [NTG-context] URLs [Re: \hyphenatedurl and the '%' character]

2010-06-03 Thread Otared Kavian
][style={sc}, after={\blank}] \def\hangover{\hangafter=1\hangindent=1.5pc\raggedright} \definestartstop[bibliography][ before={ \page[no] \indenting[never] \startalignment[left] \BibTitle{bibliography} \stopalignment \bgroup\appendtoks\hangover\to\everypar }, after

Re: [NTG-context] blank line and signals

2010-03-15 Thread Wolfgang Schuster
\LastSectionBlankSignal\zeropoint \EveryPar{\let\LastSectionBlankSignal\zeropoint} \def\SectionBlankSignal {\setevalue{LastSectionBlankSignal}{\the\dimexpr\csname\CurrentSection Signal\endcsname\relax}} % chapter \DefineSectionBlank [Chapter] [before] {\blank[force,48pt]} \DefineSectionBlank

Re: [NTG-context] \index inserts whitespace

2009-07-10 Thread Hans Hagen
Thanks, this works. Is there also a way to take care of situations where the \index command appear between two vertical skips, a stupid example is no, an index inserts something in the stream (after all it has to be anchored); in such a case you can try \EveryPar{\index{...}} (or use the delayed

Re: [NTG-context] \index inserts whitespace

2009-07-10 Thread Wolfgang Schuster
\EveryPar{\index{...}} this suppress the extra skip but executes the index at each paragraph till the next \EveraPAr or the end of the document (or use the delayed flush at par mechanism) do you mean \flushatnextpar because this works Wolfgang

Re: [NTG-context] identation question

2009-04-08 Thread Wolfgang Schuster
really thought this will be a quickie :] this is when we get spoiled with all the great features... \EveryPar{\hangafter=1\hangindent=2em\relax} \starttext \subject{Indented text} \input knuth \stoptext I would be careful with such things because it's hard to say if this will affect other

Re: [NTG-context] paragraph question (the return :O)

2009-03-13 Thread Alan Stone
Schuster schuster.wolfg...@googlemail.com wrote: Am 10.03.2009 um 18:14 schrieb Alan Stone: I still say it's not a very good idea to do this In order to make an informed decision, what are you refering to Wolfgang ? Your \EveryPar hackery. What is it about it that it's a bad idea ? Who

Re: [NTG-context] paragraph question (the return :O)

2009-03-11 Thread Alan Stone
this In order to make an informed decision, what are you refering to Wolfgang ? Your \EveryPar hackery. What is it about it that it's a bad idea ? Who knows, it could work or fail in a few cases. I apologize for my ignorance, I'm still confused with this one (see attachments)... Why? (step 3

Re: [NTG-context] paragraph question (the return :O)

2009-03-10 Thread Wolfgang Schuster
L)\relax \ifnum \parlines = 1 (step 3: P\space \the\parnumber, \the\parlines\space L)% \fi \endgroup#1\par} \def\CountLines{% \global\parnumber=0 \EveryPar{% \advance\parnumber by 1 % (step 1: P\space

Re: [NTG-context] paragraph question (the return :O)

2009-03-10 Thread Alan Stone
\ifnum \parlines = 1 (step 3: P\space \the\parnumber, \the\parlines\space L)% \fi \endgroup#1\par} \def\CountLines{% \global\parnumber=0 \EveryPar{% \advance\parnumber by 1 % (step 1: P\space\the\parnumber

Re: [NTG-context] paragraph question (the return :O)

2009-03-10 Thread Wolfgang Schuster
Am 10.03.2009 um 17:35 schrieb Alan Stone: On Tue, Mar 10, 2009 at 4:35 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: I still say it's not a very good idea to do this In order to make an informed decision, what are you refering to Wolfgang ? Your \EveryPar hackery. I

Re: [NTG-context] paragraph question (the return :O)

2009-03-10 Thread Alan Stone
to make an informed decision, what are you refering to Wolfgang ? Your \EveryPar hackery. What is it about it that it's a bad idea ? I apologize for my ignorance, I'm still confused with this one (see attachments)... Why? code: \ifnum \parlines = 1

Re: [NTG-context] paragraph question

2009-03-06 Thread Alan Stone
Another idea... How do you make this line counter work ? \newcount\parnumber \newcount\linenumber \def\myCounters{% \EveryPar{% \advance\parnumber by 1 (P\the\parnumber) \EveryLine{% % (L\the\prevgraf)}} \advance\linenumber by 1 (L\the\linenumber

Re: [NTG-context] paragraph question

2009-03-06 Thread Hans Hagen
Alan Stone wrote: Another idea... How do you make this line counter work ? \newcount\parnumber \newcount\linenumber \def\myCounters{% \EveryPar{% \advance\parnumber by 1 (P\the\parnumber) \EveryLine{% % (L\the\prevgraf)}} \advance\linenumber by 1 (L

Re: [NTG-context] paragraph question

2009-03-06 Thread Alan Stone
On Fri, Mar 6, 2009 at 3:05 PM, Hans Hagen pra...@wxs.nl wrote: [...] \startlinenumbering \input tufte \stoplinenumbering Ok, my question was a bit ambiguous... I was not looking to number lines, but to count lines using EveryLine within EveryPar, aka the paragraph counter \parnumber

Re: [NTG-context] Making necessary OpenType features on by default

2009-02-23 Thread Hans Hagen
script/language \everypar={\setbox0=\lastbox \beginR \box0 } not that user friendly, and it would break much other functionality in context -) it is not so easy to figure out how to typeset the same thing in mkiv: for instance the non specialist has to try several fonts which are installed

Re: [NTG-context] Making necessary OpenType features on by default

2009-02-22 Thread Otared Kavian
\font\Faarsi=Scheherazade:script=arab at 14pt \Faarsi % defining a font for Roman languages \font\romfont=Times Roman at 12pt \def\rom#1{{\beginL\romfont #1\endL}} \everypar={\setbox0=\lastbox \beginR \box0 } \starttext \rom{goedemorgen Hans} سلام خالد، درود بر ادریس \stoptext

Re: [NTG-context] Making necessary OpenType features on by default

2009-02-22 Thread Otared Kavian
\font\Faarsi=Scheherazade:script=arab at 14pt \Faarsi % defining a font for Roman languages \font\romfont=Times Roman at 12pt \def\rom#1{{\beginL\romfont #1\endL}} \everypar={\setbox0=\lastbox \beginR \box0 } \starttext \rom{goedemorgen Hans} سلام خالد، درود بر ادریس \stoptext

Re: [NTG-context] Sample farsi file

2009-01-07 Thread Hans Hagen
, but at this point I have not been able to solve some problems with the Persian fonts available. i can look into it if i have samples + fonts + expected output a few remakrs concerning your test doc: \everypar={\setbox0=\lastbox \beginR \box0 } ^^ this is dangerous, either do this locally

Re: [NTG-context] problem with \appendtoks \to\everypar

2008-07-31 Thread Hans Hagen
Steffen Wolfrum wrote: Hi, There is no hangover for italics. Please have a look: \starttext \def\hangover{\hangafter=1\hangindent=1em} \definestartstop[hangingarea] [before={\bgroup\appendtoks\hangover\to\everypar}, after=\egroup] \starthangingarea \input tufte

[NTG-context] problem with \appendtoks \to\everypar

2008-07-30 Thread Steffen Wolfrum
Hi, There is no hangover for italics. Please have a look: \starttext \def\hangover{\hangafter=1\hangindent=1em} \definestartstop[hangingarea] [before={\bgroup\appendtoks\hangover\to\everypar}, after=\egroup] \starthangingarea \input tufte {\it italic} text roman test text roman

Re: [NTG-context] problem with \appendtoks \to\everypar

2008-07-30 Thread Taco Hoekwater
Steffen Wolfrum wrote: Hi, There is no hangover for italics. Please have a look: This is a typical TeX gotcha. Don't start a paragraph with a group, because the \everypar will be executed within the group. The problem is not the italics but the { . \starttext \def\hangover{\hangafter

Re: [NTG-context] last bookmark is wrong

2008-06-07 Thread Hans Hagen
\section{s3}\bookmark{b3} \bTABLE\bTR\bTD bla\eTD\eTR\eTABLE this is because there is no everypar applied - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt

Re: [NTG-context] Bookmark question

2008-02-06 Thread Taco Hoekwater
Hans Hagen wrote: That looks good, but why? Does \complexbookmark only work to overrule a yet-to-come sectioning command? no, the previous one (bookmarks are flushed in everypar) in this case the \complete... has a \chapter so the bookmark influences that one So what is wrong

Re: [NTG-context] %18 or 18% : incorrect placement of the percentage sign ?

2008-02-01 Thread Otared Kavian
-script e-mails? Hi Steffen, Indeed you are right. But the point is that when writing a text in Persian, or rather any RL text, in principle the beginning of the file is: \TeXXeTstate=1 \everypar={\setbox0=\lastbox \beginR \box0 } and therefore the output is different than the one you get

Re: [NTG-context] pdfsync / editsnc == Fatal error occurred

2008-01-25 Thread Steffen Wolfrum
inserted text ...getspacing \spacing \!!plusone \everypar \emptytoks \forgetall -\the \everyforgetall \editsynctracer ...e \else \begingroup \forgetall \disableeditsync \ifcase \... \dosetstrut

[NTG-context] font modification in \inright

2007-11-25 Thread Boris Dagaev
with a hack {\vi\ \setbox0=\hbox{\ }\kern-\wd0} then \inright outputs the number correctly in a 6pt font (if I add the hack to \everypar, the inright font is still 14pt) Question: is there a way to switch to a smaller font directly in \inright{}? My solution: \setupoutput[pdftex] \definepapersize[MYBOOK

Re: [NTG-context] font modification in \inright

2007-11-25 Thread Boris Dagaev
the count in the main paragraph font (14pt) until I prefix every paragraph with a hack {\vi\ \setbox0=\hbox{\ }\kern-\wd0} then \inright outputs the number correctly in a 6pt font (if I add the hack to \everypar, the inright font is still 14pt) Question: is there a way to switch to a smaller

Re: [NTG-context] font modification in \inright

2007-11-25 Thread Thomas A. Schmitz
in a 6pt font (if I add the hack to \everypar, the inright font is still 14pt) Question: is there a way to switch to a smaller font directly in \inright{}? My solution: \setupoutput[pdftex] \definepapersize[MYBOOK][width=10.5cm,height=18.5cm] \setuppapersize[MYBOOK][letter

Re: [NTG-context] Images centered on page : Solved

2007-11-24 Thread luigi scarso
effect as \leavevmode definition from plain macro package. Note however, that \leavevmode may conflict with \everypar tokens list. No such risk while using \quitvmode instead The primitive has been introduced in pdfTEX 1.21a. \hskip1sp give more the sense of invisible touch ... -- luigi

Re: [NTG-context] Basic TeX question, how to redefine ^^M

2007-04-24 Thread Zhichu Chen
what's wrong? Here is a more robust solution \everypar{% \let\normalpar\par% \let\par\donothing% \page[yes]% \let\par\normalpar} or \everypar{% \begingroup \let\par\donothing% \page[yes]% \endgroup} or \everypar{% \bgroup \let\par\donothing% \page[yes]% \egroup} you loose

Re: [NTG-context] Basic TeX question, how to redefine ^^M

2007-04-23 Thread Aditya Mahajan
On Mon, 23 Apr 2007, Zhichu Chen wrote: Hi, Aditya I've made another definition, the output is OK, with some errors. Can you tell me what's wrong? Here is a more robust solution \everypar{% \let\normalpar\par% \let\par\donothing% \page[yes]% \let\par\normalpar} or \everypar{% \begingroup

Re: [NTG-context] Basic TeX question, how to redefine ^^M

2007-04-23 Thread Hans Hagen
Aditya Mahajan wrote: On Mon, 23 Apr 2007, Zhichu Chen wrote: Hi, Aditya I've made another definition, the output is OK, with some errors. Can you tell me what's wrong? Here is a more robust solution \everypar{% \let\normalpar\par% \let\par\donothing% \page[yes]% \let\par

[NTG-context] Basic TeX question, how to redefine ^^M

2007-04-19 Thread Zhichu Chen
Hi everybody, I want to insert some special thing between every paragraph, e.g., I'd like to make each paragraph on seperated pages. Then I use: = \appendtoks\feedcurrentpage\to\everypar \def\feedcurrentpage{\page[yes]} = and ConTeXt

Re: [NTG-context] float next to \bf

2007-01-25 Thread Hans Hagen
is not emphasised (or bold, slanted ..), it works as expected. has to do with grouping and everypar and things triggering indentation ... {\em everypar here and handling of left floatrs...} \placefloat[inner]{}{} \dontleavehmode{\bf bla} bla bla should work (i.e. force tex into hor mode

Re: [NTG-context] float next to \bf

2007-01-25 Thread Hans Hagen
finally gives the correct output of the original sample. as said ... side floats hook into everypar, switch output routine etc etc; such things don't come naturally and for free; maybe some day when we have more control ... Hans

[NTG-context] ragged right control

2006-12-05 Thread Alan Bowen
][ before={ \page[no] \indenting[never] \startalignment[left] \BibTitle{bibliography} \stopalignment \bgroup\appendtoks\hangover\to\everypar }, after={ \egroup \indenting[yes]}] Is there a way to control the degree of the raggedness of the right margin---other than

Re: [NTG-context] typesetting verse?

2006-08-23 Thread John R. Culleton
\bpoem{% \\ \begingroup \everypar={\kern .18\hsize\advance\numberoflines1 \ifodd\numberoflines \ifnum\numberoflines=\the\stanza \vskip-\baselineskip\medskip\numberoflines=0\relax\fi% \else% \quad\fi}% \obeylines} \def\epoem{\everypar={}\par\endgroup\bigskip

Re: [NTG-context] typesetting verse?

2006-08-23 Thread Derek Schmidt
-context In a book being set in plain pdftex I used the following; \newcount\numberoflines \newcount\stanza \stanza=5 \def\bpoem{% \\ \begingroup \everypar={\kern .18\hsize\advance\numberoflines1 \ifodd\numberoflines \ifnum\numberoflines=\the\stanza \vskip

Re: [NTG-context] newline with \setupTABLE[bottom=...]

2006-06-23 Thread Hans Hagen
\doconvertfont\tbltblstyle\empty \everypar{\tbltblleft\delayedbegstrut}} \def\eTBLCELL {\ifhmode \delayedendstrut \tbltblright \par % added 13/4/2006 \else \par \ifdim\prevdepth\zeropoint % =-1000pt ? \vskip-\strutdp \else \removebottomthings \fi

Re: [NTG-context] brace error after a \placefigure

2006-05-14 Thread Taco Hoekwater
nico wrote: Yes, strange. Looks like a grouping issue around this in page-flt: Yes. It works ok with \leavevmode {test}. Also. The problem is the timing of \everypar, what TeX actually executes is this: \bgroup \everypar {\egroup} \par {test} Cheers, Taco

Re: [NTG-context] brace error after a \placefigure

2006-05-13 Thread nico
this in page-flt: \ifmargeblokken % waarschijnlijk gebroken ! ! ! ! \doifinset\v!margin{#2} {\endgraf \bgroup\everypar{\egroup\the\everypar}% \hsize\@@mbwidth}% \fi inmargin seems to work, but i don't know if it should do the same thing. Regards, BG

Re: [NTG-context] treat framed and externalfigure as characters

2006-05-10 Thread Hans Hagen
don't remember the cases) think of {\command ...} rest of par \command ... rest of par and possible interferences with special \everypar situations (par starts in group or with command that itself does something that depends on the h/v mode) Hans

Re: [NTG-context] Inconsistent behaviour of placefigure[left] for math and text

2006-04-18 Thread Hans Hagen
} {\endgraf \bgroup\everypar{\egroup\the\everypar}% \hsize\@@mbwidth}% \fi \global\insidefloattrue \begingroup % ** \the\everyinsidefloat \let\@@extrafloat\empty \presetmorefloatvariables{#2}% \dowithnextboxcontent % better a \the\everyfloattoks {\setlocalfloathsize

Re: [NTG-context] About 'repeat' option of \startitemize

2006-01-04 Thread Radhelorn
? %{\noexpand\getvalue{\@@localitemsymbol\itemlevel}}% no, spoils subrefs \resetunexpanded \setfalse\headlistitem \setfalse\sublistitem \setfalse\symbollistitem \EveryPar{\ignorespaces}% needed ? \ignorespaces} % I don't think this is the best way but it will require minimal % change

Re: [NTG-context] Halfway between itemizations and descriptions

2005-11-24 Thread Hans Hagen
\subitemfalse \symbolitemfalse \EveryPar{\ignorespaces}% \ignorespaces} \protect \starttext \input tufte \defineitemgroup[gbitemize] \setupitemgroup[gbitemize][each][headstyle=bold] \startgbitemize \txt{italian} some italians like this kind of cross||breed between an itemize and a description \txt

Re: [NTG-context] Halfway between itemizations and descriptions

2005-11-24 Thread Hans Hagen
\egroup}}% \strut % added 11-08-99 \setfalse\concatnextitem % new, concat \hskip\itemsignal% new, concat \getitemparameter\itemlevel\c!command} \def\defaultitemcommand {\EveryPar{\ignorespaces}% \ignorespaces} \def\doinitializeitemgrouplevel#1% {\copyparameters [\??op

Re: [NTG-context] how to number poetry?

2005-07-18 Thread Mojca Miklavec
\everypar={} after you are done with the current poem (in the definition of \startnumberedpoem ... \stopnumberedpoem of course, not manually). The code attaches some stuff before every paragraph and there's a macro that checks if the current paragraph number is divisible by five. It is a macro with square

Re: [NTG-context] how to number poetry?

2005-07-18 Thread Hans Hagen
a poem and restore \everypar={} after you are done with the current poem (in the definition of \startnumberedpoem ... \stopnumberedpoem of course, not manually). The code attaches some stuff before every paragraph and there's a macro that checks if the current paragraph number is divisible by five

Re: [NTG-context] enumerated lists

2005-07-08 Thread Hans Hagen
\subitemfalse \symbolitemfalse \EveryPar{\ignorespaces}% \ignorespaces} \newconditional\repeatlistitem \def\checkforrepeatedlistitem {\ifnum\itemlevel=\plusone \ifnum\itemlevel=\plusone \initializeboxstack{item}% \fi \fi \ifconditional\repeatlistitem \savebox{item}{\itemlevel}{\hbox

RE: [NTG-context] bug in latest ConTeXt (confirmed)

2005-03-24 Thread ishamid
\plusone % \if#2L\chardef\inlinedirection\plusone\else % \if#2R\chardef\inlinedirection\plustwo\fi\fi % \checkinlinedirection} % needed / added %\appendtoks \checkinlinedirection \to \everypar % see core-ini.tex \def\checkinlinedirection {\ifcase\inlinedirection\or\beginL

Re: [NTG-context] Re: Layout stuff

2005-03-21 Thread h h extern
{\namedlayoutparameter{#1}{lines}} {\appendetoks 0cm \namedlayoutparameter{#1}{width} \to\scratchtoks}}} \dontcomplain \EveryPar{\SetLineWidths} \starttext \dorecurse{25}{\dorecurse{4}{\input tufte }\par} \stoptext no guarantees, no kernel stuff either, maybe some fun module hans

[NTG-context] Re: Again: hanging for a lot of paragraphs?

2004-02-18 Thread Patrick Gundlach
Hi, Very quick hack: \starttext \def\hangover{\hangafter=1\hangindent=1em }% sorry for the stupid macro name \definestartstop[hangingarea] [before={\bgroup\appendtoks\hangover\to\everypar}, after=\egroup] \starthangingarea \input tufte \input tufte \stophangingarea \input tufte

[NTG-context] Re: Again: hanging for a lot of paragraphs?

2004-02-18 Thread Steffen Wolfrum
\definestartstop[hangingarea] [before={\bgroup\appendtoks\hangover\to\everypar}, after=\egroup] \starthangingarea \input tufte \input tufte \stophangingarea \input tufte \stoptext Patrick ___ ntg-context mailing list

Re: [NTG-context] Fwd: [OS X TeX] latest pdfsync.sty

2004-01-15 Thread Hans Hagen
\llap{\infofont\backgroundline[black]{\white\editorsynchronization\space\the\inputlineno}\quad}% \endgroup \fi} \appendtoksonce\synchronizeeditor\to\everypar \protect \endinput % \starttext % \dorecurse{100}{\input ward \par} \page % \stoptext

Re: [NTG-context] \placefigure[left] again!

2003-08-14 Thread Bill McClain
: if you start a par with a \command, you may end up with yes/no indentation or some everypar interference (can for instance be due to the fact that the command can start a group and aftergroup things can be messed up), your \strut solution is ok (\indent\ noindent or \dontleavehmode is also ok